package com.ywk.springCore.lifeCycle.applicationRunner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author zbh
 * @Date 2023/8/4
 */
@Component
@Order(2)
@Slf4j
public class MyApplicationRunner2 implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("需要在springBoot项目启动后执行的代码2---");
    }
}
